{% extends "base.html" %}
{% load thumbnail %}

{% block title %}Home{% endblock %}

{% block content %}
<ul id="news-items">
{% for post in news_items %}
    <li>
    <a href="{{ post.get_absolute_url }}"><img src="{% thumbnail post.picture 100x100 %}" alt="{{ post.title }}" /></a>
    <h3><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3>
    <p>{{ post.get_short_text|safe }} <a href="{{ post.get_absolute_url }}" class="morelink">[more...]</a></p>
    <h4>posted by {{ post.user.get_full_name }} on {{ post.date|date:"l jS F, Y" }}</h4>
    <p class="category">Category: {{ post.category }}</p>
    </li>
{% endfor %}
</ul>
{% endblock %}
